package com.kun.service_edu.client;

import com.kun.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod" ,fallback = VodFileDegradeFeignClient.class )
@Component
public interface VodClient {
    @DeleteMapping("/eduVod/video/delvod/{id}")
    R delVideo(@PathVariable("id") String id);
    @DeleteMapping("/eduVod/video/delete-batch")
    public R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
